<template>
    <div class="head">
        <div @click="setCate">
            <van-icon name="qr" size="23" color="#fff" />
        </div>

        <div>

            <div class="connect">{{title}}</div>

        </div>


        <div class="right">
            <van-icon name="wap-nav" size="30" @click="goNav" color="#ffffff" />
        </div>
    </div>
</template>

<script>

  //  import i18n from '@/i18n';

    export default {
        name: 'CHead',
        data() {
            return {


            };
        },
        props: {
            title:{
                type:String,
             //   default:t('shop.info.allgoods')
                default:''
            },
            cid: {
                type: Number,
                default:0,
            }
        },
        mounted() {

        },
        created(){

        },
        methods: {
            goNav() {
                this.$router.push('/nav')
            },
            setCate() {
                this.$router.push({path:'/cateset', query:{cid:this.cid}})
            },
        },
    }
</script>

<style scoped>


    .head {
        display: flex;
        height: 60px;
        padding: 0px 25px;
        flex-direction: row;
        align-content: center;
        align-items: center;
        justify-content: space-between;
        margin: auto;
        max-width: 500px;
        position: sticky;
        left: 0;
        top: 0;
        z-index: 10;
        /* background-color: #DDFDFA; */
        background: #000;


    }

    .right {
        display: flex;
        flex-direction: row;
        align-items: center;

    }
    .left{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .right img {
        width: 26px;
        height: 26px;
    }

    .connect {
        color: #EFEFEF;
        font-size: 16px;
        align-items: center;
        padding: 6px 20px;
    }

    .van-popover__content {
        background-color: #111536 !important;
    }
</style>
  